<template>
  <!-- 用户端 -->
  <ClientSide />
</template>

<script>
import ClientSide from './client-side.vue';

export default {
  name: 'Chat',
  components: {
      ClientSide
  },
  data () {
      return {

      };
  },
  async created () {
      this.$eventHub.$on('reading_audio', this.updateReadStatus);
  },
  methods: {
      updateReadStatus (res) {
          this.$clientData.updateReadStatus(res);
      }
  },
  beforeDestroy () {
      this.$eventHub.$off('reading_audio', this.updateReadStatus);
  }
};
</script>

<style lang="less">
</style>
